package cn.fanqinghong.org.domain;

import cn.fanqinghong.basic.domain.Base;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * FAN
 * 2022/6/1  10:57
 */
@Data//lombok注解
public class Department extends Base {



    //部门编号
    private String sn;

    //部门名称
    private String name;

    //自己的儿子级
    @JsonInclude(JsonInclude.Include.NON_EMPTY)//数据不为空时返回
    List<Department> children = new ArrayList<>();
    //部门的上级分类层级id
    private String dirPath;

    //部门状态，0正常，1禁用
    private Integer state;

    //部门管理员id，关联Employee表id
    private Long manager_id;
    //部门管理员
    private Employee manager;
    //上级部门id
    private Long parent_id;
    //上级部门
    private Department parent;

    private Long shop_id;


}
